package com.tyj.movie;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRabbit //设置rabbitmq可以不加 但监听消息一定要加
@MapperScan("com.tyj.movie.mapper") //扫描mybatis接口对象 进行代理
@SpringBootApplication
@EnableScheduling  //开启定时任务
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 172800) //开启SpringSession整合Redis 时间为7天
public class CatdogMoiveFrontDeskApplication {

    public static void main(String[] args) {
        SpringApplication.run(CatdogMoiveFrontDeskApplication.class, args);
    }

}
